package com.fuhao.api.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.web.bind.annotation.RestController;

import com.fuhao.api.service.TetsApiService;
import com.fuhao.base.BaseApiService;
import com.fuhao.base.BaseRedisService;
import com.fuhao.base.ResponseBase;
import com.netflix.infix.lang.infix.antlr.EventFilterParser.between_predicate_return;

@RestController
public class TestApiServiceImpl implements TetsApiService{
	@Autowired
	protected BaseRedisService baseRedisService;
	@Override
	public ResponseBase test(Integer id, String name) {
		return BaseApiService.setResultSuccess(id+":"+name);
	}

	@Override
	public ResponseBase redisTest(String key, String value) {
		System.out.println(key+":"+value);
		baseRedisService.setString(key, value,null);
		return BaseApiService.setResultSuccess();
	}
}
